package cn.regexp.feign;

import cn.regexp.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "product-service")
public interface ProductFeignApi {

    @RequestMapping("/get")
    Product get(@RequestParam("id") Long id);
}
